package com.kornero.auto.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class Sounder {

    private static final Logger logger = LoggerFactory.getLogger(Sounder.class);

    public static void notification() {
        new AePlayWave("res/sndRemself.wav").start();
    }

    public static void alert() {
        java.awt.Toolkit.getDefaultToolkit().beep();
        Threads.sleep(500);
        //new PlaySound().testPCSPeaker();
//        PrintWriter printWriter = new PrintWriter(System.out);
//        printWriter.format("%c", 7);

//        System.out.println("\007");
//        System.out.flush();

        /*
        try {
            final Process process = Runtime.getRuntime().exec("cmd");
            final OutputStream outputStream = process.getOutputStream();

            final PrintStream printStream = new PrintStream(outputStream);

            printStream.println("\007");
            printStream.flush();

            PrintWriter printWriter = new PrintWriter(outputStream);
            printWriter.format("%c", 7);
        } catch (IOException e) {
            logger.error("():)", e);
        }
          */
        //Toolkit.getDefaultToolkit().beep();
    }
}
